package com.gzhryc.log.dao.enums;

public class InsideMessageEnum {

	public enum Status{
		
		NotRead(1,"未读"),Read(2,"已读");
		
		private Integer index;
		private String note;
		
		Status(Integer index,String note){
			this.index = index;
			this.note = note;
		}

		public Integer index() {
			return index;
		}

		public String note() {
			return note;
		}
		
		public static String note(Integer index){
			Status[] temp = Status.values();
			for(int i=0;i<temp.length;i++){
				Status item = temp[i];
				if(item.index.equals(index)){
					return item.note;
				}
			}
			return null;
		}
	}
	public enum Type{
		
		Place(1, "场所"), User(2, "用户"), Role(3, "岗位"), Org(4, "机构"), SecurityContract(5, "服务合同"), 
		SecurityCompany(6, "维保公司"), Department(7, "部门"), PlaceType(8, "场所类型"),OrgDispatch(9,"机构权限"), UserBiosignature(10, "人脸生物特征"),ATM(11,"Atm");

		
		private Integer index;
		private String note;
		
		Type(Integer index,String note){
			this.index = index;
			this.note = note;
		}
		
		public Integer index() {
			return index;
		}
		
		public String note() {
			return note;
		}
		
		public static String note(Integer index){
			Type[] temp = Type.values();
			for(int i=0;i<temp.length;i++){
				Type item = temp[i];
				if(item.index.equals(index)){
					return item.note;
				}
			}
			return null;
		}
	}
	public enum Level{
		
		One(1, "一级"), Tow(2, "二级"), Three(3, "三级"), Four(4, "四级"), Five(5, "五级");
		
		private Integer index;
		private String note;
		
		Level(Integer index,String note){
			this.index = index;
			this.note = note;
		}
		
		public Integer index() {
			return index;
		}
		
		public String note() {
			return note;
		}
		
		public static String note(Integer index){
			Level[] temp = Level.values();
			for(int i=0;i<temp.length;i++){
				Level item = temp[i];
				if(item.index.equals(index)){
					return item.note;
				}
			}
			return null;
		}
	}
}
